package top.revery.api.api.category;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.revery.api.entity.other.BaseHotKeyword;

import java.util.List;

/**
 * <h1> --- 分类接口 --- </h1>
 * Created by  revery.top jun
 * Date  2019-12-04 21:08
 */
@RequestMapping("/hotKeyword")
public interface IHotKeyword {
    /*
     * 获取子分类
     * */
    @PostMapping("/getList")
    List<BaseHotKeyword> getList();

    /*
     * 保存分类
     * */
    @PostMapping("/save")
    BaseHotKeyword save(@RequestBody BaseHotKeyword hotKeyword);

    /*
     * 删除分类
     * */
    @PostMapping("/del")
    Boolean del(@RequestParam(name = "id", defaultValue = "0") Long id);
}
